package com.example.demo1.pay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 订单支付表
 * </p>
 *
 * @author gong
 * @since 2023-02-27
 */
@Getter
@Setter
@TableName("order_pay_log")
public class OrderPayLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 支付单号
     */
    private String serialNumber;

    /**
     * 付款方账号
     */
    private String payerFundAccount;

    /**
     * 收款方账号
     */
    private String payeeFundAccount;

    /**
     * 支付金额
     */
    private BigDecimal amount;

    /**
     * 币种
     */
    private String currency;

    /**
     * 状态: init: 初始化, ok: 成功, fail: 失败, refund：有退款
     */
    private String status;

    /**
     * 退款金额
     */
    private BigDecimal refundAmount;

    private LocalDateTime createTime;

    private LocalDateTime modifyTime;


}
